<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp"%>
<c:set value="${requestScope.response.data.one }" var="one"/>
<jsp:useBean class="com.sys.users.pojo.AUsers" id="pojo"/>
<!DOCTYPE html>
<html lang="en">
	<head>
		<title>个人中心 - 美妆产品销售系统</title>
		<%@ include file="/common/include/head_title.jsp"%>
	</head>
	<body>
		<jsp:include page="/IndexHeadServlet">
			<jsp:param value="header" name="method"/>
		</jsp:include>
		<div id="mainBody">
			<div class="container">
				<div class="row">
					<%@ include file="/common/include/leftBar.jsp"%>
					<div class="span9">
						<ul class="breadcrumb">
							<li><a href="${rootPath }/MainHeadServlet?method=main">首页</a><span class="divider">/</span></li>
							<li class="active">个人中心</li>
						</ul>
						<table class="table table-bordered">
							<tbody>
								<tr>
									<th>个人信息</th>
								</tr>
								<tr>
									<td>
										<form class="form-horizontal" method="post" action="${rootPath }/head/users/usersUpdateSubmit.htm">
											<input type="hidden" name="operType" value="${param.operType }">
											<div class="control-group">
												<label class="control-label" for="email">邮箱</label>
												<div class="controls">
													<input type="text" id="email" placeholder="email" name="email" value="${one.email}">
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="nickName">昵称</label>
												<div class="controls">
													<input type="text" id="nickName" placeholder="昵称" name="nickName" value="${one.nickName}">
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="nickName">真实姓名</label>
												<div class="controls">
													<input type="text" id="trueName" placeholder="真实姓名" name="trueName" value="${one.trueName}">
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="phone">手机号</label>
												<div class="controls">
													<input type="text" id="phone" placeholder="手机号" name="phone" value="${one.phone}">
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="sex">性别</label>
												<div class="controls">
													<select name="sex">
														<c:forEach items="${pojo.enumsMap }" var="me" varStatus="stat">
															<c:if test="${fn:startsWith(me.key,'SEX_')}">
																<!-- 拆分,按照-拆分,取最后一个 -->
																<c:set value="${fn:split(me.key, '-')}" var="keys"/>
																<option value="${keys[1] }" ${one.sex == keys[1] ? 'selected' : '' }>${me.value }</option>
															</c:if>
														</c:forEach>
													</select>
												</div>
											</div>
											<div class="control-group">
												<div class="controls">
													<button type="submit" class="btn">提交</button>
												</div>
											</div>
											<div class="control-group">
												${response.info }
											</div>
										</form>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</div>
		<%@ include file="/common/include/head_footer.jsp"%>
	</body>
</html>